﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="ShowBackorder.aspx.cs" Inherits="cls.u_Models.ShowBackorder" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="Label_SelectOrgCode" runat="server" Text="选择组织：">
        <asp:DropDownList ID="DropDownList_SelectOrgCode" runat="server"></asp:DropDownList>
    </asp:Label>
    &nbsp;&nbsp;
    <asp:Label ID="Label_SelectClsCode" runat="server" Text="输入品类编码：">
        <%--<asp:TextBox ID="TextBox_InputClsCode" runat="server">%</asp:TextBox>--%>
        <asp:DropDownList ID="DropDownList_InputClsCode" runat="server">
            <asp:ListItem Selected="True" Value="0">全部</asp:ListItem>
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
            <asp:ListItem>6</asp:ListItem>
            <asp:ListItem>7</asp:ListItem>
            <asp:ListItem>8</asp:ListItem>
            <asp:ListItem>9</asp:ListItem>
        </asp:DropDownList>
    </asp:Label>
    &nbsp;&nbsp;
    <asp:Label ID="Label_SelectPluCode" runat="server" Text="输入商品编码：">
        <asp:TextBox ID="TextBox_InputPluCode" runat="server">%</asp:TextBox>
    </asp:Label>
    &nbsp;&nbsp;
    <asp:Button ID="Button_ShowBackorderDetail" runat="server" Text="查看表单" OnClick="Button_ShowBackorderDetail_Click" />
    <asp:Button ID="Button_Export" runat="server" Text="导出为Excel" OnClick="Button_Export_Click" />
    <asp:Button ID="Button_Return" runat="server" Text="返回首页" OnClick="Button_Return_Click" />
    <br />
    <%-- 批量回复开始 --%>
    <asp:Label ID="Label1" runat="server" Text="批量回复商品编码：">
        <asp:TextBox ID="TextBox_MRespPluCode" runat="server" ></asp:TextBox>
    </asp:Label>
    &nbsp;&nbsp;
    <asp:Label ID="Label_MutiResp" runat="server" Text="批量回复内容：">
        <asp:TextBox ID="TextBox_MutiRespMsg" runat="server" Width="208"></asp:TextBox>
    </asp:Label>
    &nbsp;&nbsp;
    <asp:CheckBox ID="CheckBox_OverWrite" runat="server" Text="覆盖现有回复内容" />
    &nbsp;&nbsp;
    <asp:Button ID="Button_MutiResp" runat="server" Text="批量回复（测试中）" OnClick="Button_MutiResp_Click" />
     <%-- 批量回复结束 --%>
    <br />
    <asp:Label ID="Label_ErrorMsg" runat="server"></asp:Label>
    <asp:GridView ID="GridView_BackorderDetail" runat="server" CellPadding="2" ForeColor="#333333" GridLines="None"
        OnSorting="GridView_BackorderDetail_ColumnsSorting"
        OnRowCreated="GridView_BackorderDetail_RowCreated"
        OnRowCommand="GridView_BackorderDetail_RowCommand"
        OnRowCancelingEdit="GridView_BackorderDetail_RowCancelingEdit"
        OnRowEditing="GridView_BackorderDetail_RowEditing"
        OnRowUpdating="GridView_BackorderDetail_RowUpdating"
        OnPageIndexChanging="GridView_BackorderDetail_PageIndexChanging"
        OnSelectedIndexChanged="GridView_BackorderDetail_SelectedIndexChanged"
        AllowSorting="True">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

        <%-- 对于按钮列的尝试 --%>
        <%-- 失败            --%>
        <%-- 
            <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:Button ID="UpdateDoneFlag" runat="server" ButtonType="Link" OnClick="Button_UpdateDoneFlag_Click" Text="Button" CommandArgument=' <%#Eval("DoneFlag") %>' />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        --%>

        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" Font-Size="Smaller" Wrap="False" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" Font-Size="Smaller" Font-Underline="False" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Font-Size="Smaller" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</asp:Content>
